#include<iostream>
using namespace std;
const int maxn = 5e5+9;
bool disk[maxn]={false};
bool fail[maxn]={false};
int n, x, y;
int main() {
  ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
  cin>>n>>x>>y;
  int need = x / 2;
  for(int i=0; i<y; ++i) {
    int p;cin>>p;fail[p-1]=true;
  }
  int i;
  if(x%2==1) {
    disk[0]=true;
    i = 2;
  }
  else {
    i = 1;
  }
  for(; i<n; ++i) {
    if(!disk[i]&&!fail[i]) {
      disk[i]=true;
      need--;
      i++;
      if(need==0)break;
    }
  }
  while(need!=0) {
    for(int i=1; i<n; ++i) {
      if(!disk[i]&&!fail[i]) {
        disk[i]=true;
        need--;
      }
    }
  }
  for(int i=0; i<n; ++i) cout<<disk[i];
  cout<<'\n';
}
